<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <script src="javascripts/test.js"></script>
    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
    <title>Document</title>
</head>
<body>
    <h1>Test HTML!</h1>
<script>
    axios.get('http://localhost:8080/oauth2/accessToken', {
        params: {
            "client_id": "app001",
            "username": "admin",
            "password": "1",
            "grant_type": "password",
            "client_secret": "Sn/OxjL3VMP8aLAIGA3K68/leM7t5vbCZiVhS/tO7n05eZZHpdHamvLfwzIQLDcuGcZAD6PWvRDjW91VKPUHIxcIbbyiqXFRN1psAAX0AQzy8Oh30d0yq7XNTSUOY/+s/G4R/TeKtNvncSvqtY0O3xlJyTCOEjyNcdfWfF82fcE="
        }
    }).then(function (response) {
        console.log(response);
    }).catch(function (error) {
        console.log(error);
    });

    axios.post('http://localhost:8080/oauth2/accessToken?grant_type=password', {
        "client_id": "app001",
        "username": "admin",
        "password": "1",
        "client_secret": "Sn/OxjL3VMP8aLAIGA3K68/leM7t5vbCZiVhS/tO7n05eZZHpdHamvLfwzIQLDcuGcZAD6PWvRDjW91VKPUHIxcIbbyiqXFRN1psAAX0AQzy8Oh30d0yq7XNTSUOY/+s/G4R/TeKtNvncSvqtY0O3xlJyTCOEjyNcdfWfF82fcE="
    }).then(function (response) {
        console.log(response);
    }).catch(function (error) {
        console.log(error);
    });

    sayHello();
</script>
</body>
</html>